sshpass -p $1 ssh-copy-id $2@$3 -p $4 -o StrictHostKeyChecking=no &> /dev/null
if [ $? -eq 0 ];
then
  echo "0"
else
  echo "1"
fi